<!--不在销售团队的销售员 弹层-->
<style>
    .jqtree-tree li.jqtree-selected > .jqtree-element {background-color: #fff9ee;}
    #proj_tree_table .jqtree-tree{border-top: 0;}
    #proj_tree_table{border-bottom: none !important;}
    .grid-header .join_team_dialog{ margin-top: 33px;right: 25px;}
    .grid-header .join_team_dialog_select .fag{left: 290px;}
</style>
<div style="width: 800px;">
    <div class="grid-header">
        <div class="clearfix" >
            <div class="fl" style="width: 280px;">
                <div ui-project-tree data="projectList" ng-model="curProjectId"></div>
            </div>
            <div class="fl" style="margin-left: 15px;">
                <span style="border: 1px solid #d9d9d9;display: inline-block;padding: 4px 6px 3px;">
                    <input type="text" class="input-text w215" ng-model="search_text" ng-enter="search()" placeholder="姓名/手机号" style="border:none;padding: 0;height: auto;">
                </span>
                <a href="javascript:;" class="btn" ng-click="search()">搜索</a>
            </div>
            <a href="javascript:;" class="fr btn" ng-cloak ng-show="checker.selected" 
                ui-team-add
                data="users"
                ng-model="teamInfo"">批量加入团队</a>
        </div>
    </div>
    <div class="table-wrap mt5" style="min-height: 380px;max-height: 500px;overflow-y: auto;">
        <table width="100%">
            <thead>
            <tr class="thead ta-l">
                <th height="34" width="50">
                    <label class="">
                        <input type="checkbox" ui-checkbox="序号" ng-change="checker.checkAll()" ng-model="checker.all">
                    </label>
                </th>
                <th width="100">姓名</th>
                <th width="150">手机号</th>
                <th width="100">状态</th>
                <th width="190">操作</th>
            </tr>
            </thead>
            <tbody>
            <tr ng-repeat="user in users">
                <td height="34">
                    <label class="">
                        <input type="checkbox" ui-checkbox="{{pager.pageSize * ((pager.pageIndex || 1) - 1) + $index + 1}}" ng-change="checker.check(user,$index)" ng-model="user.checked">
                    </label>
                </td>
                <td>{{user.user_name}}</td>
                <td>{{user.mobile_tel}}</td>
                <td>{{user.isdisabled == "0" ? "在职" : "离职"}}</td>
                <td class="join_team relative" width="190">
                    <a class="c-orange mr5" 
                        ui-team-add
                        ng-if="user.isdisabled == 0 && !user.imcompleted"
                        data="user"
                        ng-model="teamInfo">加入团队</a>
                    <a class="c-orange mr5" 
                        ng-if="user.imcompleted"
                        ng-cloak
                        ui-dialog="完善资料"
                        ui-dialog-url="inc/dialog/edit_saler.html"
                        ui-dialog-data="user"
                        ui-dialog-ok="updateSaler($data,$dialog)"
                        data="">完善资料</a>
                    <a class="c-orange" 
                        href="javascript:;"
                        ng-if="user.isdisabled == 1"
                        ng-click="markOnDuty(user)">置为在职</a>
                    <a class="c-orange" 
                        ng-if="user.isdisabled == 0"
                        ui-confirm-title="确定要置为离职吗？" 
                        ui-confirm-ok="markDeparture(user)"
 ui-confirm="一旦置为离职，当前成员将从所在的销售团队中移出，已发生的业务数据会保留，不再参与后续各类业务。">置为离职</a>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <div ui-pagination ng-show="users.length" page-index="pager.pageIndex" total="pager.total" page-size="pager.pageSize" changed="pager.change($pageIndex)"></div>
</div>
